import request from '../utils/request';
//仓库管理业务接口文档
const api = {
  //分页获取结存单列表数据
  PageQueryStockBalanceBillList(data?: any) {
    return request({
      url: '/api/StockBalance/PageQueryStockBalanceBillList',
      method: 'post',
      data,
    });
  },
  //判断目标仓库目标年月是否存在结存单
  JuadgeIsHaveStockBalanceBill(data?: any) {
    return request({
      url: '/api/StockBalance/JuadgeIsHaveStockBalanceBill',
      method: 'post',
      data,
    });
  },
  //创建新的结存单
  CreateStockBalanceBill(data?: any) {
    return request({
      url: '/api/StockBalance/CreateStockBalanceBill',
      method: 'post',
      data,
    });
  },
  //删除结存单
  DeleteStockBalanceBill(data?: any) {
    return request({
      url: '/api/StockBalance/DeleteStockBalanceBill',
      method: 'post',
      data,
    });
  },
  //获取结存单详情数据
  GetStockBalanceBillDetail(data?: any) {
    return request({
      url: '/api/StockBalance/GetStockBalanceBillDetail',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
